package cn.itcast.domain;

//import cn.itcast.group.AddGroup;
//import cn.itcast.group.UpdateGroup;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account implements Serializable {
//    @NotNull(message = "id不能为空" )
    private Integer id;
//    @NotNull(message = "名字不能为空" ,groups = {AddGroup.class})
    //因为根据id给某人修改钱不需要名字,不需要校验名字是否为空
    private String name;
//    @NotNull(message = "钱不能为空" ,groups = {AddGroup.class, UpdateGroup.class})
//    @Min(message = "钱数不能小于0" ,value = 0)
    private Double money;
}